1 <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CSASPNETMVCDataView.Models.RegisterModel>" %>
3 <asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
7 <asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
8 <h2>Create a New Account</h2>
10 Use the form below to create a new account.
13 Passwords are required to be a minimum of <%= Html.Encode(ViewData["PasswordLength"]) %> characters in length.
16 <% using (Html.BeginForm()) { %>
17 <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
20 <legend>Account Information</legend>
22 <div class="editor-label">
23 <%= Html.LabelFor(m => m.UserName) %>
25 <div class="editor-field">
26 <%= Html.TextBoxFor(m => m.UserName) %>
27 <%= Html.ValidationMessageFor(m => m.UserName) %>
30 <div class="editor-label">
31 <%= Html.LabelFor(m => m.Email) %>
33 <div class="editor-field">
34 <%= Html.TextBoxFor(m => m.Email) %>
35 <%= Html.ValidationMessageFor(m => m.Email) %>
38 <div class="editor-label">
39 <%= Html.LabelFor(m => m.Password) %>
41 <div class="editor-field">
42 <%= Html.PasswordFor(m => m.Password) %>
43 <%= Html.ValidationMessageFor(m => m.Password) %>
46 <div class="editor-label">
47 <%= Html.LabelFor(m => m.ConfirmPassword) %>
49 <div class="editor-field">
50 <%= Html.PasswordFor(m => m.ConfirmPassword) %>
51 <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
55 <input type="submit" value="Register" />